package com.awakensoftware.hunterserver.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.awakensoftware.hunterserver.repositories.TreasureRepository;
import com.awakensoftware.hunterserver.serverentities.Treasure;

@Service("treasureService")
@Scope("singleton")
@Transactional
public class TreasureService extends ServerEntityServiceBase<Treasure> {

	@Autowired
	private TreasureRepository treasureRepository;

	public Treasure create() {
		Treasure treasure = new Treasure();
		treasureRepository.create(treasure);
		return treasure;
	}

}
